package com.jiyun.jiyunmall.order.feign;

import com.jiyun.jiyunmall.common.annotation.LogOperation;
import com.jiyun.jiyunmall.common.utils.Result;
import com.jiyun.jiyunmall.order.feign.dto.WareSkuDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value="jiyunmall-ware",path = "/ware/waresku" )
public interface WareFiegn {
    @PutMapping
    public Result update(@RequestBody WareSkuDTO dto);


    @GetMapping("{id}")
    public Result<WareSkuDTO> get(@PathVariable("id") Long id);
}
